Repository navigation
Conversation
Switching to .regular and activating in the same runloop turn leaves the app inactive on macOS 14+, where activation is a cooperative request. Activate on the next turn with NSApp.activate() (legacy call kept for macOS 13), skipped if the bar collapsed meanwhile.
Shift-click and a plain click with the full menu bar setting on: Orca stayed frontmost for 5.5 s, policy regular, Hidden Bar never active.
Contributor
Author
|
Closing unmerged. Two real clicks on macOS 27.2.1 with this build (Shift-click, and a plain click with the full-bar setting on) left Orca frontmost for 5.5 s; Hidden Bar turned regular but never became active. The original code already activated inside the click handler and failed the same way, so deferring one runloop turn is not the fix. Rows and crops are on this branch in docs/implementation-notes/shift-click-full-bar.md, section "Fix attempt (#496)". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
On a real Shift-click on macOS 27.2.1 (the real-click row in #491), "use the full menu bar on expanding" (the setting and the one-shot Shift-click from #486) switches Hidden Bar to
.regularbut the app never becomes active. The frontmost app's menus stay and the full bar is not freed. Likely related to #142.Hypothesis (not proven)
expandMenubarcalledsetActivationPolicy(.regular)andNSApp.activate(ignoringOtherApps: true)in the same runloop turn. On macOS 14+ activation is cooperative (a request, not a command),ignoringOtherAppsis ignored and deprecated, and activating before the policy change has registered is a known failure.Change
FullBarActivation(inExpandCollapseAction.swift): sets.regular, then requests activation on the next runloop turn. macOS 14+ usesNSApp.activate(), macOS 13 keepsactivate(ignoringOtherApps:). The request is dropped if the bar collapsed or the full-bar wish ended in between.expandMenubaruses it. Collapse path is unchanged and still reverts to.accessory+deactivate(); the skipped-activation guard covers a collapse that lands before the deferred turn.FullBarActivationTests(call order, OS split, skip when collapsed). Both schemes viascripts/test.sh: 316 and 221 passed, 0 failed.Not changed (other
activate(ignoringOtherApps:)sites)StatusBarController.syncActivationPolicyWithFullStatusBar(same policy-then-activate pattern, settings toggle),NSWindow.bringToFront,SystemOverflowNotice,MacOS27Notice,AppStoreMigration,UpdateController. Those run while the app already has a window or alert up; left alone to keep this fix scoped to the full-bar path.Needs one real click on macOS 27 to verify; activation cannot be driven by a script.